package com.zxkj.logistics;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.zxkj.logistics.mapper")
public class LogisticsApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder  builder){
        return builder.sources(LogisticsApplication.class);
    }
    public static void main(String[] args) throws Exception {
        SpringApplication.run(LogisticsApplication.class, args);
    }
}
/*public class LogisticsApplication{
    public static void main(String[] args) {
        SpringApplication.run(LogisticsApplication.class, args);
    }
}*/
